package edu.gyc.objecthomework;

public class DogDemo
{
	public static void main(String[] args)
	{
		Dog balto = new Dog();
		balto.setName("Balto");
		balto.setBreed("Siberian Husky");
		balto.setAge(8);
		balto.writeOutput();

		Dog scooby = new Dog();
		scooby.setName("Scooby");
		scooby.setBreed("Great Dane");
		scooby.setAge(42);
		scooby.writeOutput();

		System.out.println("Is scooby and balto the same? " +
			scooby.equals(balto));

		Dog baltoJunior = new Dog();
		baltoJunior.setName("Balto");
		baltoJunior.setBreed("Siberian Husky");
		baltoJunior.setAge(balto.getAge()-4);
		System.out.println("Is baltoJunior and balto the same? " +
			baltoJunior.equals(balto));

		Dog baltoClone = new Dog();
		baltoClone.setName("Balto");
		baltoClone.setBreed("Siberian Husky");
		baltoClone.setAge(8);
		System.out.println("Is baltoClone and balto the same? " +
			baltoClone.equals(balto));
	}
}
